﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class EnemyBloodController : MonoBehaviour {
    [Header("血量图片")]
    public Image Bloodmage;

    [Header("最大血量")]
    public float maxBlood;

    public void SetBloodValue(float bloodValue)
    {
        Bloodmage.fillAmount = bloodValue / maxBlood;
    }
}
